<!--
 * @FilePath     : /study_code/css/border-image-quick.html
 * @Description  : 边框盒子快速使用
 * @Date         : 2025-04-28 08:53:55
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-28 08:59:44
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      * {
        box-sizing: border-box;
      }

      div {
        width: 400px;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px;
        padding: 40px;
        background: #fff3d4;
        color: #000;
        border: 30px solid;
        /* d4 */
        /* border-image: url(https://interactive-examples.mdn.mozilla.net/media/examples/border-diamonds.png)
          30 fill / 30px / 30px space; */

        /* d5 */
        border-image: linear-gradient(rgb(246, 183, 60), rgb(77, 159, 12)) 30 / 1 / 0 stretch;

        /* d5 */
        border-image: repeating-linear-gradient(
            30deg,
            rgb(77, 159, 12),
            rgb(145, 152, 229),
            rgb(77, 159, 12) 20px
          )
          60 / 1 / 0 stretch;

        font-size: 12px;
      }

      .box1 {
        border-image: url(./images/border.png) 30;
      }

      .box2 {
        border-image: url(./images/border.png) 30 / 19px round;
      }

      .box3 {
        border-image: url(./images/border.png) 30 fill / 30px / 30px space;
      }

      .box4 {
        border-image: linear-gradient(rgb(246, 183, 60), rgb(77, 159, 12)) 30 / 1 / 0 stretch;
      }

      .box5 {
        border-image: repeating-linear-gradient(
            30deg,
            rgb(77, 159, 12),
            rgb(145, 152, 229),
            rgb(77, 159, 12) 20px
          )
          60 / 1 / 0 stretch;
      }
    </style>
  </head>
  <body>
    <div class="box1">边框容器盒子</div>

    <hr />

    <div class="box2">边框容器盒子</div>

    <hr />

    <div class="box3">边框容器盒子</div>

    <hr />

    <div class="box4">边框容器盒子</div>

    <hr />

    <div class="box5">边框容器盒子</div>
  </body>
</html>
